package com.xhtt.modules.cfg.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xhtt.modules.cfg.entity.CfgPumpInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 泵库 Mapper 接口
 * </p>
 *
 * @author feipc
 * @since 2019-02-20
 */
public interface CfgPumpInfoMapper extends BaseMapper<CfgPumpInfo> {

    List<CfgPumpInfo> queryPage(Page<CfgPumpInfo> page, @Param(value = "ps") Map<String, Object> params);

    void updateUsed(@Param(value = "upPumpIds") List<Integer> upPumpIds);

    void flushProduct(@Param(value = "pumpIdList") List<Integer> pumpIdList);

    void updateCurProduct(@Param(value = "upPumpIds")List<Integer> upPumpIds, @Param(value = "productId")Integer productId, @Param(value = "productName")String productName);
}
